<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
                <div class="layui-form-item">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-block">
                <input type="text" id="phone" name="phone" readonly class="layui-input" lay-reqtext="请输入手机号码" placeholder="请输入手机号码" value="{$row.phone|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">员工头像</label>
            <div class="layui-input-block layuimini-upload">
                <input name="head_img" class="layui-input layui-col-xs6 img" placeholder="请上传员工头像" value="{$row.head_img|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['identity']['option'] as $key=>$vo}
                    <input name="identity" value="{$key}" type="radio" title="{$vo}" readonly {if $key==$row.identity}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">护理老师</label>
            <div class="layui-input-block">
                    <div class="layui-form-select" style="width: 200px">
                        <div class="layui-select-title">
                            <input type="text" data-name="name" class="layui-input aselect" readonly placeholder="请输入护理老师" data-url="/admin/ajax/ajaxselect" autocomplete="off" data-contentid="pid"  value="{$alldata['field']['pid']['option']['name']|default=''}" data-table="staff_people" data-relationship="id">
                            <input name="pid" type="hidden" value="{$row.pid}">
                            <i class="layui-edge"></i>
                        </div>
                        <dl id="pid" class="layui-anim layui-anim-upbit"><dd lay-value="" class="layui-select-tips" style="text-align: center"><i class="layui-icon layui-icon-loading layui-icon layui-anim layui-anim-rotate layui-anim-loop">请选择</i></dd></dl>
                    </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">点赞次数</label>
            <div class="layui-input-block">
                <input type="text" id="fabulous" name="fabulous" readonly class="layui-input" lay-reqtext="请输入点赞次数" placeholder="请输入点赞次数" value="{$row.fabulous|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">员工等级</label>
            <div class="layui-input-block">
                <select name="level" class="layui-select" readonly>
                    <option value="">请选择</option>
                    {foreach $alldata['field']['level']['option'] as $key=>$vo}
                    <option value="{$vo.id}" {if $vo.id==$row.level}selected{/if}>{$vo.name|raw}</option>
                    {/foreach}
                </select>
                <tip></tip>
                </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否空闲</label>
            <div class="layui-input-block">
                <input name="is_free" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="空闲|忙碌" {if $row.is_free==1}checked=""{/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input name="status" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="开启|关闭" {if $row.status==1}checked=""{/if}>
            </div>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>